﻿// ....................................................................................................................
//	Author: Copyright (C) 2012 Ing. Marek Hubal
//	Email: hubal@acasoftware.org
// ....................................................................................................................

using System;

namespace core
{
    /// <summary>Trieda ILabel</summary>
	public class ILabel : System.Windows.Forms.Label
	{
        /// <summary>Konstruktor</summary>
        /// <param name="pText">text</param>
        public ILabel(string pText = "")
        {
            Text = pText;
            AutoSize = true;
        }
	}

    /// <summary>Trieda IAutoHeightLabel</summary>
    public class IAutoHeightLabel : System.Windows.Forms.Label
    {
        /// <summary>Konstruktor</summary>
        /// <param name="pText">text</param>
        /// <param name="pWidth">sirka</param>
        public IAutoHeightLabel(string pText, int pWidth)
        {
            MinimumSize = new System.Drawing.Size(pWidth, 0);
            MaximumSize = new System.Drawing.Size(pWidth, 0);
            AutoSize = true;
            Text = pText;
        }
    }
}
